
//
//  DMNetworkingConfig.h
//  DaMaoMall
//
//  Created by HXHL-wally on 16/8/1.
//  Copyright © 2016年 daMao-wally. All rights reserved.
//

#ifndef DMNetworkingConfig_h
#define DMNetworkingConfig_h

typedef NS_ENUM(NSUInteger, DMResponseStatus) {
    // 底层仅有这三种状态
    DMResponseStatusSuccess,
    DMResponseStatusErrorTimeout,
    DMResponseStatusErrorUnknown
};

static BOOL kDMShouldCacheDefault = NO;
static BOOL kDMServiceIsOnline = NO;
static NSTimeInterval kDMTimeoutSeconds = 20.0f;
static NSTimeInterval kDMCacheOutdateTimeSeconds = 300; // 5分钟的cache过期时间
static NSUInteger kDMCacheCountLimit = 1000; // 最多1000条cache


static NSString *kServerURL = @"ttp://192.168.1.183:81/api";



#endif /* DMNetworkingConfig_h */
